var express = require('express');
var router = express.Router();
const navs = require("../sql/navs");
const sql = require("../sql");

/* GET users listing. */
router.get('/', function(req, res, next) {
    sql.get({
      colName:navs
    }).then(data=>{
      res.render('navs', {
        title: data
      });
    })
});

module.exports = router;
